﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FastDeal.DTO;
using FastDeal.DataAccess.UserTableAdapters;
using System.Configuration;
using FastDeal.DataAccess;

namespace FastDeal.Controllers
{
    public class UserController : Controller
    {
        //
        // GET: /User/

        public ActionResult Index()
        {
            var adapter = new UserTableAdapter();
            adapter.Connection.ConnectionString = BaseDataAccess.ConnectionString;
            var data = adapter.GetData().ToList();
            return View(data);
        }

        public ActionResult Created()
        {
            var param = new FastDeal.DTO.User();
            return View(param);
        }
    }
}
